package com.hdu.clj.dncard.database

import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper

/**
 * 1000X armor
 * 2000X helmet
 * 3000X boots
 * 4000X glove
 * 5000X weapon
 */
class AllEquipDatabase(val context: Context, name:String, version:Int): SQLiteOpenHelper(context,name,null,version)  {

    private val AllEquip = "create table AllEquip (" +
            "id integer primary key autoincrement," +
            "acc text unique," +
            "armor text," +
            "helmet text," +
            "boots text," +
            "glove text," +
            "weapon text)"

    override fun onCreate(db: SQLiteDatabase) {
        db.execSQL(AllEquip)
    }

    override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) {

    }
}